package com.uton.rfidcontroller.common.intent;

import android.content.Context;
import android.content.Intent;

/**
 * Created by 王家宝 on 2017/9/20.
 * Email:639586819@qq.com
 * Tel:18241150668
 */

public class IntentBuilder extends BaseIntentBuilder {

    private Intent intent;

    public Intent getIntent() {
        return this.intent;
    }

    public IntentBuilder from(Context context, Class tClazz) {
        this.intent = new Intent(context, tClazz);
        return this;
    }


    /**
     * 设置Int型参数
     *
     * @param paramIntKey
     * @param paramIntValue
     * @return
     */
    public IntentBuilder setIntParam(String paramIntKey, int paramIntValue) {
        getIntent().putExtra(paramIntKey, paramIntValue);
        return this;
    }

    /**
     * 设置String参数
     *
     * @param paramStringKey
     * @param paramStringValue
     * @return
     */
    public IntentBuilder setStringParam(String paramStringKey, String paramStringValue) {
        getIntent().putExtra(paramStringKey, paramStringValue);
        return this;
    }


}
